#include "VeggiePizza.h"

#include <iostream>

VeggiePizza::VeggiePizza(PizzaIngredientFactory *ingredientFactory){
    this->ingredientFactory = ingredientFactory;
}

void VeggiePizza::prepare(){
    std::cout << "Preparing " << name;
    dough = ingredientFactory->createDough();
    sauce = ingredientFactory->createSauce();
    veggies = ingredientFactory->createVeggies();
}